View Javadoc
1 /* 2 * Title: S/MIME Project 3 * Description: S/MIME email sending capabilities 4 * @Author Vladimir Radisic 5 * @Version 2.0.1 6 */ 7 8 9 package org.webdocwf.util.smime.cms; 10 11 12 import org.webdocwf.util.smime.exception.SMIMEException; 13 import org.webdocwf.util.smime.der.DERInteger; 14 import java.security.cert.X509Certificate; 15 import java.math.BigInteger; 16 17 18 /*** 19 * CertificateSerialNumber class is DER encoded integer represented in ASN.1 20 * notation according to RFC2630.<BR> 21 * <BR> 22 * CertificateSerialNumber ::= INTEGER<BR> 23 */ 24 public class CertificateSerialNumber extends DERInteger { 25 26 /*** 27 * Construction with BigInteger type of data as input. This constructor is used 28 * for integer numbers larger than long Java type can provide 29 * @param integer0 data of type BigInteger. 30 * @exception SMIMEException thrown from super class constructor. 31 */ 32 public CertificateSerialNumber(BigInteger integer0) throws SMIMEException { 33 super(integer0); 34 } 35 36 /*** 37 * Construction by extracting serial number from X509 certificate 38 * @param cert0 X509Certificate 39 * @exception SMIMEException thrown from super class constructor. 40 */ 41 public CertificateSerialNumber(X509Certificate cert0) throws SMIMEException { 42 super(cert0.getSerialNumber()); 43 } 44 45 /*** 46 * Construction with integer as input. This constructor is limited with 47 * dimension of Java type - long (from -9223372036854775808 to 9223372036854775807) 48 * @param longNumb0 data of type long 49 * @exception SMIMEException thrown from super class constructor. 50 */ 51 public CertificateSerialNumber(long longNumb0) throws SMIMEException { 52 super(longNumb0); 53 } 54 } 55

This page was automatically generated by Maven